package common

import (
	"github.com/garyburd/redigo/redis"
)

var (
	RedisPool *RedisMgr
)

type RedisMgr struct {
	pool *redis.Pool
}

func IntRedisPool() *RedisMgr {
	 RedisPool = &RedisMgr{
		pool: &redis.Pool{
			Dial: func() (redis.Conn, error) {
				return redis.Dial("tcp", "localhost:6379")
			},
		},
	}
	return RedisPool
}
